package com.github.boluo1230.wechat.entity.message;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
public class DataKV implements Cloneable {
    private String value;
    private String color;

    public DataKV(String value, String color) {
        this.setValue(value);
        this.setColor(color);
    }

    public DataKV(String value) {
        this.setValue(value);
        this.setColor("#000000");
    }

    public static DataKV of(String value, String color) {
        return new DataKV(value, color);
    }

    public static DataKV of(String value) {
        return new DataKV(value);
    }

    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
